<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商家管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
</head>
<body>

<div class="layui-col-md12">
	<div class="layui-card">
		<div class="layui-card-body">
			<div class="layui-tab layui-tab-brief" lay-filter="test">
				<ul class="layui-tab-title">
					<c:forEach items="${expList}" var="e" varStatus="ee">
						<li class="${ee.index+1==1?'layui-this':''}" lay-id="${ee.index+1}">&nbsp;&nbsp;&nbsp;物流编号：${e.expNo}&nbsp;&nbsp;&nbsp;</li>
					</c:forEach>
				</ul>
				<div class="layui-tab-content">
					<%-- 基本设置 --%>
					<c:forEach items="${expList}" var="e" varStatus="ee">
						<div class="layui-tab-item ${ee.index+1==1?'layui-show':''}" style="margin-top: 10px">
							<div class="layui-form-item">
								<span style="font-weight: bold;">物流公司：</span>
								<span>${e.expName}</span>
								<hr>
							</div>
							<c:choose>
								<c:when test="${empty e || e.expDetailList == null }">
									<div class="layui-form-item">暂无物流信息</div>
								</c:when>
								<c:otherwise>
									<ul class="layui-timeline">
										<c:forEach items="${e.expDetailList }" var="exp">
											<li class="layui-timeline-item">
												<i class="layui-icon layui-timeline-axis"></i>
												<div class="layui-timeline-content layui-text">
													<h3 class="layui-timeline-title">${exp.time }</h3>
													<p>${exp.remark }</p>
												</div>
											</li>
										</c:forEach>
									</ul>
								</c:otherwise>
							</c:choose>
						</div>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>
</div>

<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        //静态资源所在路径
        base: '/layuiadmin/'
    }).extend({
        //主入口模块
        index: 'lib/index'
    }).use(['index', 'form'], function(){
        var $ = layui.$,layer = layui.layer,element = layui.element;
    });
</script>
</body>
</html>